package com.deyuanyun.pic.integalz.controller;

import com.deyuanyun.pic.common.util.ajax.AjaxSupport;
import com.deyuanyun.pic.integalz.controller.dto.IntegalzQueryVO;
import com.deyuanyun.pic.integalz.service.HcaRiskAssessmentService;
import com.deyuanyun.pic.settings.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *  完整性分析---高后区、风险评价统计
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-11-16
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
@Controller
@RequestMapping("/integalz/hcaRisk")
public class IntegalzHcaRiskController extends BaseController {

    @Autowired
    private HcaRiskAssessmentService hcaRiskAssessmentService;

    /**
     * 高后果区统计
     * @param 
     * @return 
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-16
     */
    @RequestMapping("/queryHca.json")
    @ResponseBody
    public void queryHca(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", hcaRiskAssessmentService.queryHca(queryVO));
    }

    /**
     * 风险评价统计
     * @param
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-16
     */
    @RequestMapping("/queryRiskAssessment.json")
    @ResponseBody
    public void queryRiskAssessment(IntegalzQueryVO queryVO) {
        AjaxSupport.sendSuccessText("success", hcaRiskAssessmentService.queryRiskAssessment(queryVO));
    }

}
